TEMPLATE = lib
TARGET = Dialogs
CONFIG += create_prl \
    qt \
    warn_on

# VERSION = 1.0.0
# Input
HEADERS += AboutDialog.h \
    AddClass.h \
    AddFeat.h \
    AddPower.h \
    AddRace.h \
    AddSkill.h \
    AddTrait.h \
    LoadSave.h \
    PreferencesDialog.h \
    AddUpdateDialog.h \
    AddCharacter.h
FORMS += about.ui \
    addcharacter.ui \
    addclass.ui \
    addfeat.ui \
    addpower.ui \
    addrace.ui \
    addskill.ui \
    addtrait.ui \
    loadsave.ui \
    preferences.ui
SOURCES += AboutDialog.cpp \
    AddClass.cpp \
    AddFeat.cpp \
    AddPower.cpp \
    AddRace.cpp \
    AddSkill.cpp \
    AddTrait.cpp \
    LoadSave.cpp \
    PreferencesDialog.cpp \
    AddUpdateDialog.cpp \
    AddCharacter.cpp
RESOURCES = ../../resources.qrc
INCLUDEPATH += ../.
DEPENDPATH += ../.
macx { 
    DESTDIR = ../../DndTool.app/Contents/Frameworks
    CONFIG += lib_bundle
    
    # QMAKE_FRAMEWORK_BUNDLE_NAME = $$qtLibraryTarget($$TARGET)
    QMAKE_LFLAGS += -F$$DESTDIR
    QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
    LIBS += -framework \
        Models \
        -framework \
        DndData \
        -framework \
        Xml
}
else { 
    DESTDIR = ../../lib
    LIBS += -lXml \
        -lModels \
        -lDndData
    QMAKE_LFLAGS += -L../../lib
}
